{
  "properties" : { },
  "id" : "ee04875905bd4cff9170809724285c75",
  "script" : null,
  "groupId" : "69c497e428a0466098f2b4f0365cdd57",
  "name" : "获取不可删除角色",
  "createTime" : 1718810328288,
  "updateTime" : 1711902449526,
  "lock" : null,
  "createBy" : "管理员",
  "updateBy" : "管理员",
  "path" : "isNotDelRole",
  "description" : null,
  "returnType" : null,
  "mappingPath" : null,
  "parameters" : [ {
    "name" : "value",
    "value" : null,
    "description" : null,
    "required" : false,
    "dataType" : "String",
    "type" : "java.lang.String",
    "defaultValue" : null,
    "validateType" : null,
    "error" : null,
    "expression" : null,
    "children" : null
  } ]
}
================================
import redis;
import com.alibaba.fastjson.JSONArray;
import 'com.wiwf.model.mapper.admin.dao.SysDictMapper' as dictMapper;

var dKey = "not_del_role";
var items = JSONArray.parseArray(redis.get('dict:'+dKey));
if(!items){
    items = JSONArray.toJSON(dictMapper.getDictItems(dKey).getItems());
    redis.setex('dict:'+dKey, 100,items);
}

for (item in items) {
    if(item['value'].equals(value)){
        return true;
    }
}
return false;